package decorator.concreteDecorator;

import component.GraphicComponent;
import decorator.GraphicDecorator;

// ConcreteDecorator: 添加滚动条
public class ScrollBarDecorator extends GraphicDecorator {
    public ScrollBarDecorator(GraphicComponent component) {
        super(component);
    }

    @Override
    public void draw() {
        super.draw();
        addScrollBar();
    }

    private void addScrollBar() {
        System.out.println("Adding scroll bar to component");
    }
}